home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20041116-20060924
/
000364_toastyboy@googlemail.com_Thu Jun 22 08:55:55 2006.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
5KB
Path: newsmaster.cc.columbia.edu!panix!news.linkpendium.com!news.linkpendium.com!news.glorb.com!postnews.google.com!b68g2000cwa.googlegroups.com!not-for-mail
From: toastyboy@googlemail.com
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Assigning output from LINEOUT to a variable
Date: 21 Jun 2006 11:00:03 -0700
Organization: http://groups.google.com
Lines: 194
Message-ID: <1150912803.713517.155380@b68g2000cwa.googlegroups.com>
References: <1150811644.629253.47720@r2g2000cwb.googlegroups.com>
<slrne9g25a.h41.fdc@sesame.cc.columbia.edu>
<1150816457.938186.136820@r2g2000cwb.googlegroups.com>
<slrne9ispi.jaj.fdc@sesame.cc.columbia.edu>
NNTP-Posting-Host: 82.32.88.179
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1150912809 20217 127.0.0.1 (21 Jun 2006 18:00:09 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 21 Jun 2006 18:00:09 +0000 (UTC)
In-Reply-To: <slrne9ispi.jaj.fdc@sesame.cc.columbia.edu>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: b68g2000cwa.googlegroups.com; posting-host=82.32.88.179;
posting-account=9CvZkQ0AAABEiymyFVJPVVB65tz-PEMS
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15621
Frank!!
That's great! Starting to make sense now, I've used LINEOUT rather
than send the carriage return at the end, but thanks for explaining
I've been stuck on this for weeks - even ordered the kermit manual from
amazon.com! :-) ...should be useful anyway I guess.
Bad news is that I still have my original problem (which I probably
didn't explain to start with) with my *all new* script the performance
is awesome so that's good, my garage lights come on immediately that I
open the door and the front door chimes much earlier than it used to,
from moving from a shell script calling kermit, to a kermit script I
reckon has increased performance by 500% easily, so that's great.
However, what i had always had problems with was that over time my
server would run out of memory and grind to a halt, even with my new
script I'm getting the same problem.
Is it possible that my kermit script needs to flush buffers or
inputs/outputs each time it cycles?
The script is included below (it's quite long)
#!/u01/bin/kermit +
set line /dev/ttyS5
set speed 9600
set stop-bits 1
set parity none
set flow-control none
SET CARRIER-WATCH OFF
open line /dev/ttyS5
while true {
OPEN READ /u01/status/OUT11
READ \%a
close read-file
OPEN READ /u01/status/OUT12
READ \%b
close read-file
OPEN READ /u01/status/OUT13
READ \%c
close read-file
OPEN READ /u01/status/OUT14
READ \%d
close read-file
OPEN READ /u01/status/OUT15
READ \%e
close read-file
OPEN READ /u01/status/OUT16
READ \%f
close read-file
OPEN READ /u01/status/OUT17
READ \%g
close read-file
OPEN READ /u01/status/OUT18
READ \%h
close read-file
if ( == \%a 0 ) {
LINEOUT F1
INPUT 1 F1
INPUT 1 \"#\"
} else {
LINEOUT N1
INPUT 1 N1
INPUT 1 \"#\"
}
if ( == \%b 0 ) {
LINEOUT F2
INPUT 1 F2
INPUT 1 \"#\"
} else {
LINEOUT N2
INPUT 1 N2
INPUT 1 \"#\"
}
if ( == \%c 0 ) {
LINEOUT F3
INPUT 1 F3
INPUT 1 \"#\"
} else {
LINEOUT N3
INPUT 1 N3
INPUT 1 \"#\"
}
if ( == \%d 0 ) {
LINEOUT F4
INPUT 1 F4
INPUT 1 \"#\"
} else {
LINEOUT N4
INPUT 1 N4
INPUT 1 \"#\"
}
if ( == \%e 0 ) {
LINEOUT F5
INPUT 1 F5
INPUT 1 \"#\"
} else {
LINEOUT N5
INPUT 1 N5
INPUT 1 \"#\"
}
if ( == \%f 0 ) {
LINEOUT F6
INPUT 1 F6
INPUT 1 \"#\"
} else {
LINEOUT N6
INPUT 1 N6
INPUT 1 \"#\"
}
if ( == \%g 0 ) {
LINEOUT F7
INPUT 1 F7
INPUT 1 \"#\"
} else {
LINEOUT N7
INPUT 1 N7
INPUT 1 \"#\"
}
if ( == \%h 0 ) {
LINEOUT F8
INPUT 1 F8
INPUT 1 \"#\"
} else {
LINEOUT N8
INPUT 1 N8
INPUT 1 \"#\"
}
LINEOUT I1
INPUT 1 I1
MINPUT 1 1 0
.\%n := \v(minput)
if ( == \%n 1 ) {
RUN (echo 1 > /u01/status/IN11)
} else {
RUN (echo 0 > /u01/status/IN11)
}
INPUT 1 \"#\"
LINEOUT I2
INPUT 1 I2
MINPUT 1 1 0
.\%o := \v(minput)
if ( == \%o 1 ) {
RUN (echo 1 > /u01/status/IN12)
} else {
RUN (echo 0 > /u01/status/IN12)
}
INPUT 1 \"#\"
LINEOUT I3
INPUT 1 I3
MINPUT 1 1 0
.\%p := \v(minput)
if ( == \%p 1 ) {
RUN (echo 1 > /u01/status/IN13)
} else {
RUN (echo 0 > /u01/status/IN13)
}
INPUT 1 \"#\"
LINEOUT I4
INPUT 1 I4
MINPUT 1 1 0
.\%q := \v(minput)
if ( == \%q 1 ) {
RUN (echo 1 > /u01/status/IN14)
} else {
RUN (echo 0 > /u01/status/IN14)
}
INPUT 1 \"#\"
clear input
}
quit
Now that my script is running more often i'm running out of memory even
quicker than before, so I'm fairly sure that it's kermit causing my
problems (although I'm sure it's my poor scripting and not kermit's
fault)
Thanks to all again
-Dan McGrath